package com.itheima.mapper;

import com.itheima.Student;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface StudentMapper {
    @Insert("insert into student values (#{number},#{name},#{birthday},#{address})")
    void save(Student student);
    @Delete("delete from student where number = #{number}")
    void delete(String number);
    @Update("update student set name = #{name},birthday = #{birthday},address = #{address} where number = #{number}")
    void update(Student student);
    @Select("select * from student")
    List<Student> findAll();
}
